package gam.n1.cm.i;

import gam.n1.areas.Area;
import gam.n1.areas.AreaManager;
import org.bukkit.entity.Player;
import org.bukkit.plugin.Plugin;

public class AreaInitInsHandler extends BaseHandler{

    public AreaInitInsHandler(Plugin plugin) {
        super(plugin);
    }

    @Override
    public boolean handle(Player player, String[] args) throws Exception {
        if (args.length == 1){
            String var1 = args[0];
            Area var2 = AreaManager.findArea(var1);
            if (var2 != null){
                var2.getInsCreator().a(var1);
            }
        }
        return false;
    }
}
